<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><%--
  Created by IntelliJ IDEA.
  User: ylp36
  Date: 2021/12/13
  Time: 13:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>热门视频</title>
</head>
<style>
    table{
        margin-left:300px;
        table-layout: fixed;
        width:1000px;
        height:200px;
        border:1px solid green;


    }
    td{
        white-space: nowrap;text-overflow: ellipsis;overflow: hidden;
        border:2px solid blue;
        background-color: bisque;

    }
    .div{
        overflow:auto;
    }
    a{
        margin-left:70%;
        text-decoration: none;
    }
</style>
<body>
    <table>
        <c:forEach items="${sessionScope.user}" var="user" >
            <tr>
            <td><div class="div">标题</div></td>
            <td><div class="div">网址</div></td>
            <td><div class="div">作者</div></td>
            <td><div class="div">封面</div></td>
            <td><div class="div">热度</div></td>
            <td><div class="div">热词</div></td>
            <td><div class="div">播放数</div></td>
            <td><div class="div">点赞数</div></td>
            <td><div class="div">评论数</div></td>
        </tr>
        <tr>
            <td><div class="div">${user.title}</div></td>
            <td><div class="div">${user.share_url}</div></td>
            <td><div class="div">${user.author}</div></td>
            <td><div class="div">${user.item_cover}</div></td>
            <td><div class="div">${user.hot_value}</div></td>
            <td><div class="div">${user.hot_words}</div></td>
            <td><div class="div">${user.hot_words}</div></td>
            <td><div class="div">${user.digg_count}</div></td>
            <td><div class="div">${user.comment_count}</div></td>
        </tr>
    </c:forEach>
        </table>
<a  href="index.jsp" >回到首页</a>
</body>
</html>
